<#import "../tpl/pageTep.ftl" as page>
<@page.pageBase currentMenu="字典编辑">
<style>
    /***循环的表单设置***/
    .bui-select .bui-select-input {
        width: 250px;
    }
    .button-large {
        padding: 10px 30px;
        font-size: 16px;
    }
</style>
<div class="xm-offline">
    <div class="row">
        <div class="panel">
            <div class="returnBtn panel-header">
                <a href="${basepath}/manage/dictionary/toList">返回上一级</a>
            </div>
            <div class="panel-body">
                <form id="detailForm" class="form-horizontal" action="${basepath}/manage/dictionary/update" method="post">
                    <input type="hidden" class="control-text span-width span6" name="id" value="${e.id!}"/>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>id：</label>
                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="id"
                                   disabled="disabled" value="${e.id!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            字典类型：
                        </label>
                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="dictType" value="${e.dictType!}" data-rules="{required : true}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            类型名称：
                        </label>
                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="dictName" value="${e.dictName!}" data-rules="{required : true}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            名称值：
                        </label>
                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="dictValue" value="${e.dictValue!}" data-rules="{required : true}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            <s>*</s>
                            顺序：
                        </label>
                        <div class="controls">
                            <input type="text" class="control-text span-width span6" name="dictOrder" value="${e.dictOrder!}" data-rules="{required : true}"/>
                        </div>
                    </div>
                    <div class="centered">
                        <input type="submit" class="button  button-large button-success" value="确认更新"/>
                    </div>
            </div>
            </form>
        </div>
    </div>
</div>
<script>
    //创建BUI表单对象
    var editForm = new BUI.Form.Form({
        srcNode: '#detailForm',
        submitType: 'normal'
    });
    editForm.render();
</script>
</@page.pageBase>